using System.ComponentModel.DataAnnotations;

namespace Models
{
    public class RegisterModel
    {
        [Required]
        [EmailAddress]
        public required string Email { get; set; }// 电子邮件

        [Required]
        [StringLength(100, MinimumLength = 6)]
        public required string Password { get; set; }// 密码

        [Required]
        public required string FirstName { get; set; }// 名字

        [Required]
        public required string LastName { get; set; }// 姓氏
    }
}